package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ProjectPostEvaluation;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ProjectPostEvaluationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;

/**
 *  项目后评价表  Mapper接口
 *
 * @author admin
 * @since 2025-08-15
 */
@Mapper
public interface ProjectPostEvaluationMapper extends BaseMapper<ProjectPostEvaluation> {
    /**
     * 查询 项目后评价表
     *
     * @return
     */
    List<ProjectPostEvaluationVO> selectProjectPostEvaluationList(@Param("query") ProjectPostEvaluationVO vo);

    IPage<ProjectPostEvaluationVO> pageList(@Param("page") Page<ProjectPostEvaluationVO> page, @Param("query") ProjectPostEvaluationVO vo);

    List<ProjectPostEvaluationVO> getDataForExport(@Param("query") ProjectPostEvaluationVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ProjectPostEvaluationVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    List<ProjectPostEvaluationVO> queryPageInfo(@Param("projectName") String projectName);

    List<ProjectPostEvaluationVO> personList(@Param("query") ProjectPostEvaluationVO query, @Param("offset") int offset, @Param("pageSize") int pageSize);

    int countUnionList(@Param("query") ProjectPostEvaluationVO query);
}
